<?php

require('header.php');
require('table_des_matieres.php');

if (isset($success) && $success)
{
	echo '	<fieldset>
				<legend>'.$language[$_SESSION['lang']]["Success"].'</legend>
				'.$language[$_SESSION['lang']]["NewPassword"].' '.$language[$_SESSION['lang']]["PleaseLoginAgain"].'
			</fieldset>';
}

?>

<fieldset>
<legend><?php echo $language[$_SESSION['lang']]["Defaultmail"]; ?></legend>

<form method="POST">

	<input type="hidden" name="e-mail" />

	<label class="text" for="mail"><?php echo $language[$_SESSION['lang']]["Defaultmail"]; ?></label>
	<input type="text" name="mail" value="<?php echo $user->mail; ?>" /><br /><br />
	
	<input type="submit" name="validermail" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>">
	
</form>

</fieldset>

<fieldset>

<legend><?php echo $language[$_SESSION['lang']]["Defaultlogin"]; ?></legend>

<form method="POST">

	<input type="hidden" name="e-mail" />

	<table>
		<tr>
			<td>
				<label class="text" for="mdp"><?php echo $language[$_SESSION['lang']]["NewPassLabel"]; ?> : </label>
			</td>
			<td>
				<input type="password" name="mdp" />
			</td>
		</tr>
		<tr>
			<td>
				<label class="text" for="verifmdp"><?php echo $language[$_SESSION['lang']]["WriteItAgain"]; ?> : </label><br /><br />
			</td>
			<td>
				<input type="password" name="verifmdp" /><br /><br />
			</td>
		</tr>
		<tr>
			<td>
				<label class="text" for=""><?php echo $language[$_SESSION['lang']]["CurPassLabel"]; ?> : </label>
			</td>
			<td>
				<input type="password" name="oldmdp" />
			</td>
		</tr>
		
	</table>
	<br />
	<input type="submit" name="validerpass" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>">
	
</form>

</fieldset>

<fieldset>
<legend><?php echo $language[$_SESSION['lang']]["Phone"] ; ?></legend>

	<form method="POST">
	
		<input type="hidden" name="e-mail" />
		
		<table>
			<tr>
				<td><label class="text" for="telephone"><?php echo $language[$_SESSION['lang']]["Phone"]; ?> : </label></td>
				<td><input type="text" name="telephone" value="<?php echo $user->telephone; ?>" /></td>
			</tr>
			<tr>
				<td><label class="text" for="mobile"><?php echo $language[$_SESSION['lang']]["Mobile"]; ?> : </label></td>
				<td><input type="text" name="mobile" value="<?php echo $user->mobile; ?>" /></td>
			</tr>
		</table>
		<br />
		<input type="submit" name="validerphone" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>">
	
	</form>

</fieldset>

<fieldset>
<legend><?php echo $language[$_SESSION['lang']]["Language"] ; ?></legend>

	<form method="POST">
	
		<input type="hidden" name="e-mail" />
	
		<label class = "text" for="langue"><?php echo $language[$_SESSION['lang']]["WantedLanguage"]; ?></label>				
		<input class = "text" type="radio" name="langue" value="1" /> <label for="Français"><?php echo $language[$_SESSION['lang']]["French"]; ?></label>
		<input class = "text" type="radio" name="langue" value="2" /> <label for="Anglais"><?php echo $language[$_SESSION['lang']]["English"]; ?></label>
	
		<br /><br />
		<input type="submit" name="validerlangue" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>">
	
	</form>

</fieldset>

<fieldset>
<legend><?php echo $language[$_SESSION['lang']]["Address"] ; ?></legend>

	<form method="POST">
	
	<input type="hidden" name="e-mail" />
	
	<?php require('Views/adresse.php'); ?>
	
	<br />
	<input type="submit" name="valideradresse" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>">
	
	</form>

</fieldset>

<?php

require('footer.php');

?>
